package at.socialconference.web.client.util;

import at.socialconference.inter.model.User;
import at.socialconference.web.client.controller.ViewController;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class AsyncCallbackGetClientUser implements AsyncCallback<User> {
	public void onFailure(Throwable caught) {}

	public void onSuccess(User result) {
		ViewController.getInstance().setUser(result);
		ViewController.getInstance().changeViewToLoggedIn();
	}
}